package org.nathanielyoung.fbb;

import org.nathanielyoung.events.EventSource;

public class Board extends EventSource<BoardChangeEvent, BoardChangeListener> {

	public void setState(Player player, Position[] board, Position[] preview) {
		player.setBoard(board);
		player.setPreview(preview);

		BoardChangeEvent event = new BoardChangeEvent(player);
		fire(event);
	}
}
